<?php
/**
 * Created by PhpStorm.
 * User: sosyuki
 * Date: 2018/3/21
 * Time: 16:42
 */

namespace Drupal\wx_pay\MetadataController;


use EntityDefaultMetadataController;

class WxPayTransactionMetadataController extends EntityDefaultMetadataController {

  public function entityPropertyInfo() {
    $info = parent::entityPropertyInfo();
    $properties = &$info[$this->type]['properties'];

    $properties['created'] = [
      'label' => t('创建时间'),
      'type' => 'date',
      'schema field' => 'created',
      'description' => t('时间.'),
    ];

    return $info;
  }
}
